package com.xingxuecn.limit.service;

import com.xingxuecn.limit.common.model.Page;
import com.xingxuecn.limit.common.model.Role;


import java.sql.SQLException;
import java.util.List;

/**
 * @author 陈前钱 at 2018/9/13 0013 下午 3:50
 */
public interface RoleService {
    List<Role> findAll() throws SQLException;

    List<Role> search(Role role) throws SQLException;

    int add(Role role) throws SQLException;

    int update(Role role) throws SQLException;

    int delete(int id) throws SQLException;


    Page searchPage(Role role, int page, int rows) throws SQLException;
}
